package cn.lliiooll.ippzonetoolbox.utils;

import android.app.Activity;
import com.google.common.collect.Lists;

import java.util.List;

public class ActivitiesManager {

    static List<Activity> as = Lists.newArrayList();

    public static void add(Activity activity) {
        as.add(activity);
    }

    public static void remove(Activity activity) {
        as.remove(activity);
    }

    public static void exit() {
        for (Activity a : as) {
            a.finish();
        }
    }
}
